import Vue from 'vue';

const list = (params) => {
    return Vue.prototype.$u.get('comment/list', params);
};

const detail = (params) => {
    return Vue.prototype.$u.get('comment/detail', params);
};

const create = (params) => {
    return Vue.prototype.$u.post('comment/create', params);
};

const comment_ready = (params) => {
    return Vue.prototype.$u.get('comment/ready', params);
};

const remove = (params) => {
    return Vue.prototype.$u.delete('comment/remove', params);
};

export default {
    list,
    detail,
    create,
    remove,
    comment_ready
};
